From e724c3fa8860de463cfeddca9932571e6cb1883a Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 23 Jun 2010 17:01:35 +0100 Subject: [PATCH] prompt user to start xencommons first if it is not running. Signed-off-by: Yu Zhiguo --- tools/hotplug/Linux/init.d/xend | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/hotplug/Linux/init.d/xend b/tools/hotplug/Linux/init.d/xend index 9ffbf55432..985db0c57c 100755 --- a/tools/hotplug/Linux/init.d/xend +++ b/tools/hotplug/Linux/init.d/xend @@ -37,6 +37,10 @@ function await_daemons_up case "$1" in start) + if [ -z "`ps -C xenconsoled -o pid=`" ]; then + echo "xencommons should be started first." + exit 1 + fi mkdir -p /var/lock/subsys touch /var/lock/subsys/xend xend start -- 2.30.2